package com.common.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author 大静
 * @version 1.0
 * @date 2021-05-07 15:50
 * @description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
  private String userId;

  @NotBlank(message = "用户名不允许为空")
  private String userName;

  @NotBlank(message = "用户密码不允许为空")
  private String userPassword;

  @NotBlank(message = "用户昵称不允许为空")
  private String userNickname;

  @Email(message = "邮箱格式不对")
  private String userEmail;
  /** 0: 游客 * 1: 买家 * 2: 卖家 * 3: 预留 * 4: 管理员 * 5: 根用户 */
  private Integer userType = 0;
}
